import { makeAutoObservable } from 'mobx'
import { userProfile } from '@/api'

class UserStore {
  userInfo = ''
  constructor() {
    makeAutoObservable(this)
  }
  getUser = async () => {
    const res = await userProfile()
    this.userInfo = res.data
  }
}
export default UserStore